package com.bdqn.service.impl;

import com.bdqn.mapper.UserMapper;
import com.bdqn.pojo.User;
import com.bdqn.service.UserService;
import com.bdqn.tools.Page;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;


    @Override
    public User login(String usrName, String usrPassword) {
        return null;
    }

    @Override
    public int saveUser(User user) {
        return 0;
    }

    @Override
    public int deleteUser(Long usrId) {
        return 0;
    }

    @Override
    public int updateUser(User user) {
        return 0;
    }

    @Override
    public User getUserById(Long usrId) {
        return null;
    }

    @Override
    public List<User> selectUsersWithRoles() {
        return List.of();
    }

    /**
     * 根据用户名查询用户
     *
     * @param usrName
     */
    @Override
    public User selectUserName(String usrName) {
        return null;
    }

    /**
     * 按条件进行分页查询（动态SQL）
     *
     * @param usrName
     * @param roleId
     * @param page
     */
    @Override
    public Page<User> findPage(String usrName, Long roleId, Page<User> page) {
        return null;
    }
}
